/*
 Navicat MySQL Data Transfer

 Source Server         : mysql
 Source Server Type    : MySQL
 Source Server Version : 50730
 Source Host           : localhost:3306
 Source Schema         : user

 Target Server Type    : MySQL
 Target Server Version : 50730
 File Encoding         : 65001

 Date: 07/07/2021 14:44:25
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for class
-- ----------------------------
DROP TABLE IF EXISTS `class`;
CREATE TABLE `class` (
  `cid` int(255) NOT NULL AUTO_INCREMENT,
  `className` varchar(20) DEFAULT NULL,
  `grade` varchar(20) DEFAULT NULL,
  `chairman` varchar(20) DEFAULT NULL,
  `slogan` varchar(20) DEFAULT NULL,
  `counts` int(20) DEFAULT NULL,
  `id` int(255) DEFAULT NULL,
  PRIMARY KEY (`cid`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of class
-- ----------------------------
BEGIN;
INSERT INTO `class` VALUES (1, '班级一', '年级1', '班主任1', '口号1', 40, 1);
INSERT INTO `class` VALUES (2, '班级二', '年级2', '班主任2', '口号2', 40, 2);
INSERT INTO `class` VALUES (3, '班级三', '年级3', '班主任3', '口号3', 41, 3);
COMMIT;

-- ----------------------------
-- Table structure for register
-- ----------------------------
DROP TABLE IF EXISTS `register`;
CREATE TABLE `register` (
  `id` int(255) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `password` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of register
-- ----------------------------
BEGIN;
INSERT INTO `register` VALUES (1, '刘宇星', '123');
INSERT INTO `register` VALUES (2, '黄龙飞', '123');
INSERT INTO `register` VALUES (3, '伍伙田', '111');
COMMIT;

-- ----------------------------
-- Table structure for student
-- ----------------------------
DROP TABLE IF EXISTS `student`;
CREATE TABLE `student` (
  `id` int(255) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `sex` varchar(255) DEFAULT NULL,
  `birthday` varchar(255) DEFAULT NULL,
  `emil` varchar(255) DEFAULT NULL,
  `phone` int(255) DEFAULT NULL,
  `comment` varchar(255) DEFAULT NULL,
  `cid` int(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of student
-- ----------------------------
BEGIN;
INSERT INTO `student` VALUES (1, '小冰', '女', '1999-05-01', '132@qq.com', 111, '美丽的小冰', 1);
INSERT INTO `student` VALUES (2, '小强', '男', '1999-09-01', '122@qq.com', 222, '魁梧的小强', 2);
INSERT INTO `student` VALUES (3, '小猪', '男', '1999-11-01', '124@qq.com', 333, '可爱的小猪', 3);
COMMIT;

SET FOREIGN_KEY_CHECKS = 1;
